package com.wang.wangrpc.fault.retry;

import com.wang.wangrpc.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * @Author 王子旭
 * @Date 2025/04/06 12:02
 * @Version 1.0
 */
public interface RetryStrategy {
    /**
     * 重试
     *
     * @param callable
     * @return
     * @throws Exception
     */
    RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception;
}